package com.xquant.pricing.calc.entity.barrier;

/**
 * @Author: xpp -_- -_-
 * @Date: 2022/1/6 10:05
 */
public enum TriggerTypeEnum {

    EqualOrLess("EqualOrLess","小于等于"),
    EqualOrGreater("EqualOrGreater","大于等于"),
    Equal("Equal","相等"),
    Less("Less","小于"),
    Greater("EqualOrLess","大于")
    ;


    private String code;
    private String desc;

    TriggerTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public TriggerTypeEnum setCode(String code) {
        this.code = code;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public TriggerTypeEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }
}
